#!/bin/sh

install_vim () {
	apk add --no-cache vim rsync
}

setup_vim() {
	if [ -d /srv/vim/vimfiles ]; then
		rsync -rv /srv/vim/vimfiles/ ~/.vim/
	else
		mkdir ~/.config
		git clone https://gitee.com/BIT_chenxinliang/vim-config ~/.config/vim
		ln -s ~/.config/vim ~/.vim
	fi
}

install_vim
setup_vim
